// 主题颜色定义
$primary-blue: #4281ee;
$primary-green: #65f3d0;
$text-color: #1e293b;
$input-bg: #f1f5f9;
$border-color: #e2e8f0;

.login-index {
  display: flex;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;

  .login-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;

    .form-container {
      width: 70%;
      max-width: 420px;
      padding: 40px;
      background: linear-gradient(135deg, rgba($primary-blue, 0.03), rgba($primary-green, 0.03));
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      transition: all 0.4s ease-in-out;

      h1 {
        color: $text-color;
        margin-bottom: 2rem;
        font-size: 2.2rem;
        font-weight: 700;
        text-align: center;
        letter-spacing: -0.5px;
      }

      .login-button {
        width: 100%;
        height: 2.5rem;
        padding: 14px;
        background: linear-gradient(135deg, $primary-blue, $primary-green);
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 0.3px;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 6px 16px rgba($primary-blue, 0.3);
          // background: linear-gradient(135deg, color.adjust($primary-blue, $lightness: -5%), color.adjust($primary-green, $lightness: -5%));
        }

        &:active {
          transform: translateY(0);
        }
      }
    }
  }

  .login-right {
    width: 60%;
    background: linear-gradient(135deg, $primary-blue, $primary-green);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
    padding: 60px;

    h2 {
      font-size: 3rem;
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 2;
      font-weight: 700;
      letter-spacing: -0.5px;
    }

    p {
      font-size: 1.5rem;
      opacity: 0.9;
      position: relative;
      z-index: 2;
      line-height: 1.6;
      letter-spacing: -0.3px;
    }

    .decoration-circle,
    .decoration-circle-2 {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(4px);
      animation: float 12s infinite ease-in-out;
    }

    .decoration-circle {
      width: 400px;
      height: 400px;
      top: -100px;
      left: -100px;
      animation-delay: 0s;
    }

    .decoration-circle-2 {
      width: 300px;
      height: 300px;
      bottom: -50px;
      right: -50px;
      animation-delay: 4s;
    }
  }
}

// 动画：漂浮效果
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

// 响应式设计
@media (max-width: 992px) {
  .login-index {
    flex-direction: column;

    .login-left,
    .login-right {
      width: 100%;
    }

    .login-right {
      padding: 40px 20px;
    }
  }
}